import java.util.Arrays;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-03-20
 * Time:17:13
 */
import java.util.Arrays;
public class TestDome {
    /**
     * 写一个函数将  数组以字符串的形式进行输出  [1, 2, 3, 4]
     * @param array
     * @return
     */
    public static String myToString(int[] array) {
        String  arr= Arrays.toString(array);
        return(arr);
    }

    public static void main(String[] args) {
        int[] array = {1,2,3,4};
        String ret = myToString(array);
        System.out.println(ret);
    }
}
